/***
 * 路由穷举
 */
export const ALL_ROUTES = {
  LOGIN: {
    name: "login",
    path: "/login",
    title: "Login",
  },
  FORGET_PWD: {
    name: "forgetPwd",
    path: "/forget-pwd",
    title: "Forget Password",
  },
  NOT_AUTHORIZED: {
    name: "notAuthorized",
    path: "/not-authorized",
    title: "403",
  },
  NOT_FOUND: {
    name: "notFound",
    title: "404",
  },
  DASHBOARD: {
    name: "dashboard",
    path: "/",
    title: "dashboard",
  },
  ROLE_INDEX: {
    name: "roleIndex",
    path: "/role",
    title: "Role",
  },
  ROLE_DETAIL: {
    name: "roleDetail",
    path: "/role/:roleId",
    title: "Role Detail",
  },
  SETTINGS_INDEX: {
    name: "settingIndex",
    path: "/settings",
    title: "Settings",
  },
  SETTING_MENU: {
    name: "menuSetting",
    path: "/settings/menu",
    title: "Menu Setting",
  },
};

/**
 * 不需登录的路由
 */
export const IGNORE_AUTH_ROUTES = [
  ALL_ROUTES.LOGIN.name,
  ALL_ROUTES.FORGET_PWD.name,
];

/**
 *  不需要鉴权的路由
 */
export const IGNORE_PERMISSION_ROUTES = [
  ALL_ROUTES.NOT_AUTHORIZED.name,
  ALL_ROUTES.NOT_FOUND.name,
  ALL_ROUTES.DASHBOARD.name
];

/***
 * 404路由
 */
export const NOT_FOUND_ROUTER = ALL_ROUTES.NOT_FOUND.name;
